package com.corejsf;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 * Used for constructing intermediate temporary user objects,
 * prior to storing data in database.
 *
 * @author Victor Lu
 */
@RequestScoped
@Named("userModel")
public class UserModel {
    /**
     * Uniquely identifying username.
     */
    private String userName;
    /**
     * User last name.
     */
    private String lastName;
    /**
     * User first name.
     */
    private String firstName;
    /**
     * User password, checked against for authentication.
     */
    private String password;
    /**
     * User Admin authorization.
     */
    private boolean admin;
    /**
     * Gets username.
     * @return userName
     */
    public String getUserName() {
        return userName;
    }
    /**
     * Sets username.
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }
    /**
     * Gets lastname.
     * @return lastName
     */
    public String getLastName() {
        return lastName;
    }
    /**
     * Sets lastname.
     * @param lastName
     */
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
    /**
     * Gets firstname.
     * @return firstName
     */
    public String getFirstName() {
        return firstName;
    }
    /**
     * Sets firstname.
     * @param firstName
     */
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
    /**
     * Gets password.
     * @return password
     */
    public String getPassword() {
        return password;
    }
    /**
     * Sets password.
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }
    /**
     * Gets admin.
     * @return admin
     */
    public boolean isAdmin() {
        return admin;
    }
    /**
     * Sets admin.
     * @param admin
     */
    public void setAdmin(boolean admin) {
        this.admin = admin;
    }

}
